name = ["2", 3, 3.2, [2, 4, 3]]
print(name, type(name))
print(name[-2], name[-3], name[3][-1])
print("index is:", name.index("2"))

name[1] = 1
name[-1] = [3, 4, 5]
print(name[1], name[-1])
name.insert(1, 333)
print(name)
name.append("last")
print(name)

age = [6, 6, 6]
name.extend(age)
print(name)

print("count:", name.count(6))

del name[-1]
print(name)
ele = name.pop(-1)
print(ele)
name.remove(6)
print(name)

print(f"total: {len(name)}")

age = list(name)
print(age)

for i in age:
    print(i)

for i in range(0, len(age)):
    print(age[i])